import { createStore, combineReducers, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';

import CityReducer from './reducer/CityReducer';
import CinemaReducer from './reducer/CinemaReducer';
import TabbarReducer from './reducer/TabbarReducer';

const reducer = combineReducers({
  CityReducer,
  TabbarReducer,
  CinemaReducer,
});

const store = createStore(reducer, applyMiddleware(ReduxThunk));

export default store;
